/**
 * pajk.com Inc.
 * Copyright (c) 2014-2015 All Rights Reserved.
 */
package springbootreactor;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import reactor.bus.EventBus;
import reactor.core.Environment;
import reactor.spring.context.config.EnableReactor;

/**
 * @author yuewenxin
 * @version v 0.1 15/7/10 11:17 aaronyue Exp $$
 */
@Configuration
@EnableReactor
public class ReactorConfig {

    @Bean
    public EventBus eventBus(Environment environment) {
        return EventBus.create();
    }

    @Bean
    public Environment environment()
    {
        return new Environment();
    }
}
